package com.sunwayhorizo.health.hl7.persistent;

import com.sunwayhorizo.health.hl7.persistent.pk.RimCoreEntyCdSetsPK;

import java.io.*;
import javax.persistence.*;

/**
 * 
* @Title: RimCoreEntyCdSets.java
* @Package com.sunwayhorizo.health.hl7.persistent
* @Description: 新增三个字段 CODINGSCHEME_CH_NAME CODINGSCHEME_EN_NAME CONCEPT_Name
*               去掉一个字段  CODINGSCHEME_NAME
* @version V1.0
* @firstAuthor robo
* @firstTime   2010-11-22 下午07:50:23
* @lastAuthor  jinzw
* @lastTime    2010-11-22 下午07:50:23 
* @updComment  建立RimCoreEntyCdSets与RimCoreEntities的关系，并完成对应的get set方法
 */
@Entity
//@TableGenerator(name="EntyCdSets_IdGenerator", table="RIM_Id_Generator", pkColumnName = "pkColumn", valueColumnName = "valueColumn",pkColumnValue="Enty_CdSets")
@Table(name = "RIM_CORE_ENTY_CD_SETS")
@IdClass(RimCoreEntyCdSetsPK.class)
public class RimCoreEntyCdSets implements Serializable {
   
	/**
     * 
     */
    private static final long serialVersionUID = 1L;

    @Id
//    @GeneratedValue (strategy = GenerationType.TABLE,generator = "EntyCdSets_IdGenerator" )
    @Column(name="ENTITY_CODE_SET_ID", nullable = false)    
    private Long entityCodeSetId;
    
    @Id
    @Column(name="ENTITY_ID", nullable = false,insertable = false,  updatable = false)   
    private Long entityId; 
    
    @Id
    @Column(name="ENTITY_VERSION_NUM", nullable = false,insertable = false,  updatable = false)    
    private Long entityVersionNum;
    
    @Column(name="ATTRIBUTE_TYPE_CODE", nullable = false)    
    private String attributeTypeCode;
    
    @Column(name="CODINGSCHEME_CH_NAME")    
    private String codingschemeChName;
    
    @Column(name="CODINGSCHEME_EN_NAME")    
    private String codingschemeEnName;
    
    @Column(name="CODINGSCHEME_OID")    
    private String codingschemeOid;
    
    @Column(name="CODINGSCHEME_VERSION_NAME")    
    private String codingschemeVersionName;
    
    @Column(name="COERCED_CONCEPT_ID")    
    private String coercedConceptId;
    
    @Column(name="CONCEPT_CODE")    
    private String conceptCode; 
    
    @Column(name="CONCEPT_Name")    
    private String conceptName; 
    
    @Column(name="INTERMEDIATE_CONCEPT_ID")    
    private String intermediateConceptId;
    
    @Column(name="ORIGINAL_TEXT")    
    private String originalText;
    
    @ManyToOne
    @JoinColumns({
       @JoinColumn(name = "ENTITY_ID", referencedColumnName = "ENTITY_ID"),
       @JoinColumn(name = "ENTITY_VERSION_NUM", referencedColumnName = "ENTITY_VERSION_NUM")
    })
    private RimCoreEntities rimCoreEntities;
    
    

    public RimCoreEntyCdSets() {
    }

    public String getAttributeTypeCode() {
        return attributeTypeCode;
    }

    public void setAttributeTypeCode(String attributeTypeCode) {
        this.attributeTypeCode = attributeTypeCode;
    }

    public String getCodingschemeEnName() {
        return codingschemeEnName;
    }

    public void setCodingschemeEnName(String codingschemeEnName) {
        this.codingschemeEnName = codingschemeEnName;
    }
    

    public String getCodingschemeChName() {
		return codingschemeChName;
	}

	public void setCodingschemeChName(String codingschemeChName) {
		this.codingschemeChName = codingschemeChName;
	}

	public String getCodingschemeOid() {
        return codingschemeOid;
    }

    public void setCodingschemeOid(String codingschemeOid) {
        this.codingschemeOid = codingschemeOid;
    }

    public String getCodingschemeVersionName() {
        return codingschemeVersionName;
    }

    public void setCodingschemeVersionName(String codingschemeVersionName) {
        this.codingschemeVersionName = codingschemeVersionName;
    }

    public String getCoercedConceptId() {
        return coercedConceptId;
    }

    public void setCoercedConceptId(String coercedConceptId) {
        this.coercedConceptId = coercedConceptId;
    }

    public String getConceptCode() {
        return conceptCode;
    }

    public void setConceptCode(String conceptCode) {
        this.conceptCode = conceptCode;
    }

    public String getConceptName() {
		return conceptName;
	}

	public void setConceptName(String conceptName) {
		this.conceptName = conceptName;
	}

	public Long getEntityCodeSetId() {
        return entityCodeSetId;
    }

    public void setEntityCodeSetId(Long entityCodeSetId) {
        this.entityCodeSetId = entityCodeSetId;
    }

    public Long getEntityId() {
        return entityId;
    }

    public void setEntityId(Long entityId) {
        this.entityId = entityId;
    }

    public Long getEntityVersionNum() {
        return entityVersionNum;
    }

    public void setEntityVersionNum(Long entityVersionNum) {
        this.entityVersionNum = entityVersionNum;
    }

    public String getIntermediateConceptId() {
        return intermediateConceptId;
    }

    public void setIntermediateConceptId(String intermediateConceptId) {
        this.intermediateConceptId = intermediateConceptId;
    }

    public String getOriginalText() {
        return originalText;
    }

    public void setOriginalText(String originalText) {
        this.originalText = originalText;
    }

    public void setRimCoreEntities(RimCoreEntities rimCoreEntities) {
        this.rimCoreEntities = rimCoreEntities;
    }

    public RimCoreEntities getRimCoreEntities() {
        return rimCoreEntities;
    }
   
}
